package com.aaa.base.service;

import com.aaa.entity.base.Locator;
import com.aaa.entity.stock.Stock;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aaa
 * @since 2020-11-23
 */
public interface LocatorService extends IService<Locator> {
    //分页查询
    Page<Locator> searchLocator(Integer page, Integer limit, Locator locator,Long warehouseid);

    //查询type类型
    List<Map> findType();

    /*通过货位编码和仓库id查询目标货位*/
    Locator selectTarLocByLoCode(String locatorcode,Long warehouseid);

    List<Locator> selectLocByWareId(Long warehouseid);

    List<Locator> selectLocByWareIdState(Long warehouseid);

    List<Map> selectIMoLo();

    List<Stock> selectStockByLocCode(String code);
}
